package com.beagle.njddapp.bean.owner;

import android.text.TextUtils;

import com.beagle.njddapp.net.BaseResponseBean;

/**
 * @author hxx
 * @date 2021-03-18 16:53
 */
public class DIrverOrderBean implements BaseResponseBean {


    /**
     * orderId : 28
     * orderNum : null
     * meshId : 25
     * meshUserPhone : 666666
     * meshUserName : 农机主
     * distance : null
     * meshType : null
     * workType : null
     * meshNum : null
     * beginDate : 2021-03-18 16:32:35.360169
     * endDate : null
     * workAddress : 北京
     * workPrice : null
     * orderStatus : 3
     * createBy : 16
     * createTime : 2021-03-18 16:32:35.360169
     * updateTime : null
     * receiverId : 17
     * receiver : 农机驾驶员
     * receiverPhone : 3333333
     * receiveTime : 2021-03-18 16:32:35.360169
     * meshLng : null
     * meshLat : null
     */

    private int orderId;
    private String orderNum;
    private int meshId;
    private String meshUserPhone;
    private String meshUserName;
    private String distance;
    private String meshType;
    private String workType;
    private String meshNum;
    private String beginDate;
    private String endDate;
    private String workAddress;
    private String workPrice;
    private int orderStatus;
    private int createBy;
    private String createTime;
    private String updateTime;
    private int receiverId;
    private String receiver;
    private String receiverPhone;
    private String receiveTime;
    private double meshLng;
    private double meshLat;
    private String workTypeName;
    private String meshTypeName;
    private String plantLng;
    private String plantLat;

    public String getPlantLng() {
        return plantLng;
    }

    public String getPlantLat() {
        return plantLat;
    }

    public void setPlantLng(String plantLng) {
        this.plantLng = plantLng;
    }

    public void setPlantLat(String plantLat) {
        this.plantLat = plantLat;
    }

    public String getMeshTypeName() {
        return meshTypeName;
    }

    public void setMeshTypeName(String meshTypeName) {
        this.meshTypeName = meshTypeName;
    }

    public String getWorkTypeName() {
        return workTypeName;
    }

    public void setWorkTypeName(String workTypeName) {
        this.workTypeName = workTypeName;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public int getMeshId() {
        return meshId;
    }

    public void setMeshId(int meshId) {
        this.meshId = meshId;
    }

    public String getMeshUserPhone() {
        return meshUserPhone;
    }

    public void setMeshUserPhone(String meshUserPhone) {
        this.meshUserPhone = meshUserPhone;
    }

    public String getMeshUserName() {
        return meshUserName;
    }

    public void setMeshUserName(String meshUserName) {
        this.meshUserName = meshUserName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getMeshType() {
        return meshType;
    }

    public void setMeshType(String meshType) {
        this.meshType = meshType;
    }

    public String getWorkType() {
        return workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    public String getMeshNum() {
        return meshNum;
    }

    public void setMeshNum(String meshNum) {
        this.meshNum = meshNum;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getWorkAddress() {
        return workAddress;
    }

    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress;
    }

    public String getWorkPrice() {
        return workPrice;
    }

    public void setWorkPrice(String workPrice) {
        this.workPrice = workPrice;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public int getCreateBy() {
        return createBy;
    }

    public void setCreateBy(int createBy) {
        this.createBy = createBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(int receiverId) {
        this.receiverId = receiverId;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public double getMeshLng() {
        if (TextUtils.isEmpty(plantLng)){
            return meshLng;
        }
        return Double.parseDouble(plantLng);
    }

    public void setMeshLng(double meshLng) {
        this.meshLng = meshLng;
    }

    public double getMeshLat() {
        if (TextUtils.isEmpty(plantLat)){
            return meshLat;
        }
        return Double.parseDouble(plantLat);
    }

    public void setMeshLat(double meshLat) {
        this.meshLat = meshLat;
    }
}
